package ru.nagakhl.whirlpool.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation that indicates that value of field marked with this annotation must be used
 * as ColumnFamily key (and no Column with such key present).
 * 
 * Only one field in class can have such an annotation.
 * 
 * @author nagakhl
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Id {

}
